﻿using App.Dal;
using App.Untiys;
using Sunny.UI;
using Sunny.UI.Win32;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml.Linq;
using Win.Dal;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;

namespace App.Desk.Sys.PLCSetting
{
    public partial class FrmList : UIPage
    {
        public FrmList()
        {
            InitializeComponent();
        }

        private void FrmSamplingData_Resize(object sender, EventArgs e)
        {
            txtSFSJ.Value = SamplingPLCHelper.Instance.DoRead(276).ToStringEx().ToIntEx();
        }

        public void GetList()
        {
           
        }

        private void FrmSamplingData_Load(object sender, EventArgs e)
        {
            GetList();
        }

        private void uiButton1_Click(object sender, EventArgs e)
        {
            SamplingPLCHelper.Instance.DoWrite(276, (short)txtSFSJ.Value);
            
        }
    }
}
